package test00.lx05.t04;

import java.util.function.Predicate;

/**
 * @author ZQX
 * @date 2025-04-07
 */
public class MainTest {
    public static void main(String[] args) {
        String email = "zss@zss@qq.com";

        // boolean test(T t);
        Predicate<String> predicate = (e) -> {

            String[] arr = e.split("@");

            if (arr.length != 2) {
                return false;
            }

            return arr[0].length() >= 5;
        };

        boolean bl = predicate.test(email);
        System.out.println(bl);
    }
}
